const mongoose = require('mongoose')

const schema = new mongoose.Schema({
  title: {
    type: String,
    require: true,
  },
  time: String,
  type: {
    type: Number,
    default: -1,
  },
  account: {
    type: Number,
    require: true,
  },
  remark: String,
})

const mongooseModule = mongoose.model('accounts', schema)

module.exports = mongooseModule